package com.haoyeteng.sxbd.modular.business.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 发票表
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-05-31
 */
@TableName("bus_bill")
public class Bill extends Model<Bill> {

    private static final long serialVersionUID = 1L;

    /**
     * 发票Id
     */
    @TableId(value = "bill_id", type = IdType.AUTO)
    private Integer billId;
    /**
     * 订单Id
     */
    @TableField("order_id")
    private String orderId;
    /**
     * 资质认证Id
     */
    @TableField("auth_id")
    private Integer authId;
    /**
     * 地址Id
     */
    @TableField("address_id")
    private Integer addressId;
    /**
     * 发票编号
     */
    @TableField("bill_no")
    private String billNo;
    /**
     * 开具类型(0:纸质发票)
     */
    @TableField("operer_type")
    private Integer opererType;
    /**
     * 发票抬头
     */
    @TableField("bill_title")
    private String billTitle;
    /**
     * 发票类型（0：增值税普通发票，1：增值税专用发票
）
     */
    @TableField("bill_type")
    private Integer billType;
    /**
     * 申请发票状态(0.未开具;1已开具已寄送;2已开具未寄送;3.已驳回)
     */
    @TableField("bill_state")
    private Integer billState;
    /**
     * 纳税登记号
     */
    @TableField("pay_taxes")
    private String payTaxes;
    /**
     * 开票代码
     */
    @TableField("bill_code")
    private String billCode;
    /**
     * 银行账号
     */
    @TableField("blank_card")
    private String blankCard;
    /**
     * 发票备注
     */
    @TableField("bill_desc")
    private String billDesc;
    /**
     * 物流公司
     */
    @TableField("logistics_company")
    private String logisticsCompany;
    /**
     * 快递单号
     */
    @TableField("express_no")
    private String expressNo;
    /**
     * 驳回理由
     */
    @TableField("reject_reason")
    private String rejectReason;
    /**
     * 申请时间(创建时间)
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 删除标记
     */
    @TableLogic
    private Integer flag;


    public Integer getBillId() {
        return billId;
    }

    public void setBillId(Integer billId) {
        this.billId = billId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getAuthId() {
        return authId;
    }

    public void setAuthId(Integer authId) {
        this.authId = authId;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public String getBillNo() {
        return billNo;
    }

    public void setBillNo(String billNo) {
        this.billNo = billNo;
    }

    public Integer getOpererType() {
        return opererType;
    }

    public void setOpererType(Integer opererType) {
        this.opererType = opererType;
    }

    public String getBillTitle() {
        return billTitle;
    }

    public void setBillTitle(String billTitle) {
        this.billTitle = billTitle;
    }

    public Integer getBillType() {
        return billType;
    }

    public void setBillType(Integer billType) {
        this.billType = billType;
    }

    public Integer getBillState() {
        return billState;
    }

    public void setBillState(Integer billState) {
        this.billState= billState;
    }

    public String getPayTaxes() {
        return payTaxes;
    }

    public void setPayTaxes(String payTaxes) {
        this.payTaxes = payTaxes;
    }

    public String getBillCode() {
        return billCode;
    }

    public void setBillCode(String billCode) {
        this.billCode = billCode;
    }

    public String getBlankCard() {
        return blankCard;
    }

    public void setBlankCard(String blankCard) {
        this.blankCard = blankCard;
    }

    public String getBillDesc() {
        return billDesc;
    }

    public void setBillDesc(String billDesc) {
        this.billDesc = billDesc;
    }

    public String getLogisticsCompany() {
        return logisticsCompany;
    }

    public void setLogisticsCompany(String logisticsCompany) {
        this.logisticsCompany = logisticsCompany;
    }

    public String getExpressNo() {
        return expressNo;
    }

    public void setExpressNo(String expressNo) {
        this.expressNo = expressNo;
    }

    public String getRejectReason() {
        return rejectReason;
    }

    public void setRejectReason(String rejectReason) {
        this.rejectReason = rejectReason;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    protected Serializable pkVal() {
        return this.billId;
    }

    @Override
    public String toString() {
        return "Bill{" +
        "billId=" + billId +
        ", orderId=" + orderId +
        ", authId=" + authId +
        ", addressId=" +addressId +
        ", billNo=" + billNo +
        ", opererType=" + opererType +
        ", billTitle=" + billTitle +
        ", billType=" + billType +
        ", billState=" + billState +
        ", payTaxes=" + payTaxes +
        ", billCode=" + billCode +
        ", blankCard=" + blankCard +
        ", billDesc=" + billDesc +
        ", logisticsCompany=" + logisticsCompany +
        ", expressNo=" + expressNo +
        ", rejectReason=" + rejectReason +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", flag=" + flag +
        "}";
    }
}
